projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62af836
)
macos: avoid setHasShadow unless shadow changes
author
Christian Hergert
<chergert@redhat.com>
Fri, 1 Jan 2021 21:09:57 +0000
(13:09 -0800)
committer
Christian Hergert
<chergert@redhat.com>
Fri, 1 Jan 2021 21:17:47 +0000
(13:17 -0800)
gdk/macos/gdkmacossurface.c
patch
|
blob
|
history
diff --git
a/gdk/macos/gdkmacossurface.c
b/gdk/macos/gdkmacossurface.c
index 7e0c15dfe2468e6a1e8fc04a959f2f096f7a0c66..61e249497ef737c96fa803d1840c876254cba2a1 100644
(file)
--- a/
gdk/macos/gdkmacossurface.c
+++ b/
gdk/macos/gdkmacossurface.c
@@
-150,6
+150,12
@@
_gdk_macos_surface_set_shadow (GdkMacosSurface *surface,
g_assert (GDK_IS_MACOS_SURFACE (self));
+ if (self->shadow_top == top &&
+ self->shadow_right == right &&
+ self->shadow_bottom == bottom &&
+ self->shadow_left == left)
+ return;
+
self->shadow_top = top;
self->shadow_right = right;
self->shadow_bottom = bottom;